export default {
    namespaced: true,
    state: {
        userInfo:{},
    },
    getters: {
        userInfo: state => state.userInfo,
    },
    mutations: {
        SET_USER_INFO(state, userInfo = {}) {
            state.userInfo = userInfo;
        },
    },
    actions: {
        setUserInfo({ commit }, userInfo = {}) {
            commit('SET_USER_INFO', userInfo)
        },
    }
}